<link rel="stylesheet" href="assets/bootstrap-select/dist/css/bootstrap-select.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="assets/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
<section id="main-content">
    <section class="wrapper">
        <!--state overview end-->
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">
                        员工信息
                    </header>
                    <div class="panel-body">

                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">所属公司</label>
                            <div class="col-sm-10">
                                <!--<div class="input-group">

                                    <input type="text" class="form-control" placeholder="Username">
                                </div>-->
                                <select ng-model="baseUser.departmentUser.companyCode" disabled class="form-control"
                                        ng-change="changeDept(baseUser.departmentUser.companyCode)"
                                        certus-required disabled>
                                    <option ng-repeat="x in companySelect" value="{{x.companyId}}">{{x.company}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm"
                             ng-mouseenter="mouseoverDept(baseUser.departmentUser.departmentCode)"
                             ng-mouseleave="show = false">
                            <label class="col-sm-2 control-label">所属部门</label>
                            <div class="col-sm-10" style="line-height: 34px;">
                                <!-- <select  ng-model="baseUser.departmentUser.departmentCode" class="form-control" ng-disabled="personDisabled.ngper" certus-required>
                                    <option ng-repeat="x in departmentSelect" value="{{x.departmentCode}}">{{x.departmentName}}
                                    </option>
                                </select>-->
                                {{departmentName}}<label ng-show="show"
                                                         style="margin-bottom: 0">-({{superiorDeptName}})</label>
                                <!--<label>{{}}</label>-->
                            </div>
                        </div>
                        <!--<div ng-show="show">{{superiorDeptName}}</div>-->
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">一级部门</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.dep1_name"
                                       ng-disabled="personDisabled.dep1_name"
                                       certus-required>
                            </div>
                        </div>
<!--                        &lt;!&ndash;<div ng-show="show">{{superiorDeptName}}</div>&ndash;&gt;-->
<!--                        <div class="form-group customerForm">-->
<!--                            <label class="col-sm-2 control-label">二级部门</label>-->
<!--                            <div class="col-sm-10">-->
<!--                                <input type="text" class="form-control" ng-model="baseUser.dep2_name"-->
<!--                                       ng-disabled="personDisabled.dep2_name"-->
<!--                                       certus-required>-->
<!--                            </div>-->
<!--                        </div>-->
                        <!--<div ng-show="show">{{superiorDeptName}}</div>-->
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">就职岗位</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.positonName"
                                       ng-disabled="personDisabled.positonName"
                                       certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">座位号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.seatCode"
                                       ng-disabled="personDisabled.seatCode">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">员工姓名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.userName"
                                       ng-disabled="personDisabled.userName"
                                       certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">员工性别</label>
                            <div class="col-sm-10">
                                <select ng-model="baseUser.sex" class="form-control" ng-disabled="personDisabled.sex"
                                        certus-required>
                                    <option ng-repeat="x in sexSelect" value="{{x.sex}}">{{x.sexName}}</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">出生日期</label>
                            <div class="col-sm-10">
                                <input id="datetime" type="text" ng-model="baseUser.birthday" class="form-control"
                                       ng-disabled="personDisabled.birthday" certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">婚姻状况</label>
                            <div class="col-sm-10">
                                <select ng-model="baseUser.isMarriage" class="form-control"
                                        ng-disabled="personDisabled.isMarriage">
                                    <option ng-repeat="x in marriageSelect" value="{{x.isMarriage}}">
                                        {{x.marriageName}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">手机号码</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-disabled="personDisabled.phoneNumber"
                                       onblur="telNo(this.id)" id="phone" certus-an-limit-length-num="20"
                                       ng-model="baseUser.phoneNumber" certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">企业微信号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.weChatId"
                                       ng-disabled="personDisabled.weChatId" certus-an-limit-length-str="20">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">直接领导</label>
                            <div class="col-sm-10">
                                <select  data-live-search="true" class="form-control selectpicker"  id="leaderNameId"
                                        ></select>

                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">QQ号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.qqNum"
                                       certus-an-limit-length-str="20" ng-disabled="personDisabled.qqNum">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">公司邮箱</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.email"
                                       ng-disabled="personDisabled.email"
                                       certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">区号-固定电话-分机号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.telephoneNumber"
                                       ng-disabled="personDisabled.telephoneNumber" certus-an-limit-length="15">
                            </div>
                        </div>

                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">入职时间</label>
                            <div class="col-sm-10">
                                <input type="datetime1" class="form-control" ng-model="baseUser.enrollTime"
                                       ng-disabled="personDisabled.enrollTime"
                                       certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">常驻地址</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="baseUser.basedArea"
                                       ng-disabled="personDisabled.basedArea"
                                       certus-required>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">英文名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-disabled="personDisabled.englishName"
                                       ng-model="baseUser.englishName" certus-an-limit-length-str="15">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">在职状态</label>
                            <div class="col-sm-10">
                                <select ng-model="baseUser.onPost" class="form-control"
                                        ng-disabled="personDisabled.onPost"
                                        certus-required>
                                    <option ng-repeat="x in onPostSelect" value="{{x.onPost}}">{{x.onPostName}}
                                    </option>
                                </select>
                            </div>
                        </div>

                    </div>
                </section>
                <section class="panel">
                    <div class="panel-body">
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info"
                               onclick="window.history.back()">返回</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-success" ng-click="userOperate()">确认提交</a>
                        </p>
                    </div>
                </section>
            </div>
        </div>
    </section>
</section>
<!-- 当前页面js文件引入 -->
<script src="js/office/index.js"></script>